import React,{ Component } from 'react';
import { InputNumber } from 'antd';


class InputNumbers extends Component {
	constructor(props) {
		super(props);
		this.state = {

		}
	}
	handleChange(value) {
		console.log('value是',value);
	}
	render() {
		return (
			<div>
				<InputNumber
					defaultValue={100}
					min={0}
					max={100}
					formatter = { value => `${value}%`}
					parser = { value => value.replace('%','')}
					onChange = { this.handleChange.bind(this) }
				/>
			</div>
		)
	}
}
export default InputNumbers;